package com.example.financechain.service;

import com.example.financechain.Utils.JsonData;
import com.example.financechain.domain.LoginParam;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.util.Map;
public interface LoginService {
//    //生成token
//    Map<String, Object> createToken(String captcha);


    //生成captcha验证码
    Map<String, Object> captchaCreator() throws IOException;

    //验证输入的验证码是否正确
//    Boolean versifyCaptcha (String token, String inputCode);

    JsonData login(LoginParam loginParam) throws NoSuchAlgorithmException;
}
